package com.delu.feign;

import com.delu.data.Result;
import com.delu.dto.TravelOrderDTO;
import com.delu.dto.VipDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("delu-rental-service-ht")
public interface OrderFegin {

    @GetMapping("/travel-ordre")
    public Result<TravelOrderDTO> selectPayRank(@RequestParam("orderId")Long orderId);

    @PutMapping("/travel-ordre")
    public Result updateTravelOrderById(@RequestBody TravelOrderDTO travelOrderDTO);
    @GetMapping("/travel-ordre/selectVipId")
    public Result<VipDTO> selectVipId(@RequestParam("vipId") Long vipId);

}
